import Vue from 'vue'
import { home } from './home.js'
import { zcdt } from './zcdt.js'

Vue.api = Vue.prototype.$api = {
    /* -----------------------------基础数据接口----------------------------------- */
    getToken: `/open/oauth/getAccessToken`, // 获取token
    getUserInfo: `/open/oauth/open/getUserInfo`, // 获取用户信息
    uploadFile: `/qiniu/uploadFile`, // 七牛上传
    getUploadToken: `/qiniu/getUploadToken`, // 获取七牛上传token
    appAuthorize: '/open/oauth/appAuthorize', // 获取Token
    getOptions: '/basedata/web/option/getOptions', // 获取参数设置
    newGetToken: '/open/oauth/appAuthorize', // 新的获取token方式
    getTypeOptions: '/basedata/web/noauth/option/getOptions', // 获取人员持证选项设置, // 选项设置
    queryGeneralSettingByCode: '/basedata/web/applicationEts/queryGeneralSettingByCode', //  查询参数接口
    getAppointParameterSetting: '/basedata/web/api/generalSetting/queryByCodesAndAppService', // 获取指定的参数设置
    getTokenByAppServiceId: '/open/oauth/getAccessTokenByAppServiceIdMemberId', // 根据appServiceId来获取token
    getAppInfoByAppServiceId: '/open/api/devop/getAppInfoByAppServiceId', // 获取审批的appID
    getRootInfo: '/organization/inner/member/getAdminMemberInfo', // 获取管理员

    // 业务
    /* ----------------------------首页------------------------------------ */
    ...home,
    /**
     * 资产地图
     */
    ...zcdt,
}
